//
//  PitchingSystem.m
//  baseball
//
//  Created by Donggi Hahm on 10. 03. 14.
//  Copyright 2010 ComTalk. All rights reserved.
//

#import "PitchingSystem.h"


@implementation PitchingSystem

@synthesize nState, nFrame;

- (id) init
{
	nState = PS_PITCHING_INTERVAL;
	nFrame = 0;
	
	return self;
}

- (void) SetCurrentPitchingSystem: (NSInteger)state
{
	nState = state;
	nFrame = 0;
	
	switch (nState) {
		case PS_PITCHING_INTERVAL :
			gameInfo.nBallCnt++;
			break;
		case PS_PITCHING_BALL_FLY :
			break;
		case PS_MITT_DELAY :
			gameInfo.nComboCnt = 0;
			break;
		default:
			break;
	}
}

@end
